import request from '@/request/api'
// 1、流程配置-新建或保存
export function addOrSaveInfo(data) {
  return request({
    url: '/eam-service-configure/configureWorkflow',
    method: 'post',
    data: data
  })
}
// 2、流程配置-删除
export function deleteInfo(data) {
  return request({
    url: '/eam-service-configure/configureWorkflow',
    method: "delete",
    params: data
  })
}
// 3、流程配置-查询详情数据
export function queryInfoById(data) {
  return request({
    url: '/eam-service-configure/configureWorkflow',
    method: 'get',
    params: data
  })
}
// 4、流程配置-查询列表
export function queryList(data) {
  return request({
    url: '/eam-service-configure/configureWorkflow/page',
    method: 'get',
    params: data
  })
}
// 5、流程配置-获取工作流引擎链接
export function getHref() {
  return request({
    url: '/eam-service-configure/configureWorkflow/href',
    method: 'get',
  })
}
// 6、流程配置-获取工作流模板组字典
export function getSetCodes(appCode = "") {
  return request({
    url: '/eam-service-configure/configureWorkflow/setCodes',
    method: 'get',
    params: {
      appCode
    }
  })
}
// 7、流程配置-获取工作流模板字典
export function getProcessCodes(setId = "") {
  return request({
    url: '/eam-service-configure/configureWorkflow/processCodes',
    method: 'get',
    params: {
      setId
    }
  })
}
// 8、流程配置-从选定租户中复制所有的流程配置
export function copyWorkflow(code = "") {
  return request({
    url: '/eam-service-configure/configureWorkflow/copyWorkflowFromAppCode',
    method: 'get',
    params: {
      code
    }
  })
}